#ifndef CHATMESSAGE_H
#define CHATMESSAGE_H

#include <QByteArray>
#include "Change/message.h"

class ChatMessage : public Message
{
public:
        ChatMessage(int newID, QString newMsg);
        ChatMessage(QByteArray bytes);

        QByteArray toBytes();
        QByteArray toBytesSys();

        int getUserID() {return userID;}
        QString getMsg() {return msg;}

        void setUserID(int newID) {userID = newID;}
        void setMsg(QString newMsg) {msg = newMsg;}

private:
        int userID;
        QString msg;
};

#endif // CHATMESSAGE_H
